/*
* @author dumeng
*/
'use strict'
import request from '@/utils/request'

/**
 * 列表查询
 */
 export function queryPage(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/areaNotice/queryPage',
    method: 'post',
    data
  })
}
/**
 * 新建
 */
 export function insert(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/areaNotice/insert',
    method: 'post',
    data
  })
}
/**
 * 编辑
 */
 export function update(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/areaNotice/update',
    method: 'post',
    data
  })
}


/**
 * 删除
 */
 export function del(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/areaNotice/deleteById',
    method: 'post',
    data
  })
}




/**
 * 详情
 */
export function get(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/areaNotice/get',
    method: 'post',
    data
  })
}


/**
 * 发布/取消发布
 */
export function updateState(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/areaNotice/release',
    method: 'post',
    data
  })
}

/**
 * 开关修改
 */
 export function set(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/areaNotice/switchStatusChange',
    method: 'post',
    data
  })
}


/**
 * 置顶/取消置顶
 */
 export function updateIsTop(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/areaNotice/updateIsTop',
    method: 'post',
    data
  })
}


/**
 * 统一修改-评分状态
 */
export function setEvaluateState(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/areaNotice/updateEvaluateState',
    method: 'post',
    data
  })
}

/**
 * 统一修改-点赞状态
 */
export function setFavorState(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/areaNotice/updateFavorState',
    method: 'post',
    data
  })
}

/**
 * 统一修改-评论状态
 */
export function setCommentState(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/info/ggxw/updateCommentState',
    method: 'post',
    data
  })
}
